package model

import "time"

type GuestbookMod struct {
	GuestbookId      int       `xorm:"NOT NULL AUTO_INCREMENT    PK  int(11)"`
	GuestbookUser    string    `xorm:"null VARCHAR(255)"`
	GuestbookName    string    `xorm:"null VARCHAR(255)"`
	GuestbookPhone   string    `xorm:"null VARCHAR(255)"`
	GuestbookMail    string    `xorm:"null VARCHAR(255)"`
	GuestbookDes     string    `xorm:"null VARCHAR(255)"`
	GuestbookPro     string    `xorm:"null VARCHAR(255)"`
	GuestbookCompany string    `xorm:"null VARCHAR(255)"`
	GuestbookImg     string    `xorm:"null VARCHAR(255)"`
	GuestbookRead    bool      `xorm:"null tinyint(1)"`
	CreateTime       time.Time `xorm:"not null    datetime"`
	UpdateTime       time.Time `xorm:"not null    datetime"`
}

func (v *GuestbookMod) TableName() string {
	return "guestbook"
}
